<?php

namespace app\common\model;

use cores\BaseModel;

class ProtocolDoc extends BaseModel
{
    protected $name = 'protocol_doc';

    public function getContentAttr($value): string
    {
        return htmlspecialchars_decode($value);
    }

    public function detail($key):string
    {
        $content = self::where('key',$key)->value('content') ?? '';
        return  htmlspecialchars_decode($content);
    }

}